package com.main.menuinterfacesmanagement.interfaces.facada;

import com.main.common.base.resp.RespBody;
import com.main.common.entity.ListPage;
import com.main.menuinterfacesmanagement.application.service.MenuService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@Tag(name = "Menu", description = "菜单")
@RestController
@RequestMapping("")
public class MenuFacade {
    @Resource
    private MenuService menuService;

    @PostMapping("/getById")
    public RespBody<UserDTO> getById(@Validated @RequestBody GetUserDTO getUserDTO) {
        return userService.getUserById(getUserDTO.getId());
    }

}
